package com.ltu.domain.mp_entity.customize;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotNull;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ltu.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 广告
 * </p>
 * @author 若尘
 * @since 2024-09-26
 */
@Accessors(chain = true)
@TableName("t_device_ad")
@ApiModel(value="DeviceAdEntity对象", description="广告")
public class DeviceAdEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

		  @ApiModelProperty(value = " ad_name:广告名称 ")
		 		  private String adName;
    	  @ApiModelProperty(value = " ad_url:广告地址 ")
		 		  private String adUrl;
    	  @ApiModelProperty(value = " coordinates:坐标 ")
		 		  private String coordinates;
    	  @ApiModelProperty(value = " create_time:创建时间 ")
		 		  private Date createTime;
    	  @ApiModelProperty(value = " create_user:创建人 ")
		 		  private String createUser;
    	  @ApiModelProperty(value = " update_time:最后一次新时间 ")
		 		  private Date updateTime;
    	  @ApiModelProperty(value = " updator:更新人 ")
		 		  private Integer updator;
    	  @ApiModelProperty(value = " online_time:最近一次上线时间 ")
		 		  private Date onlineTime;
    	  
    	  @ApiModelProperty(value = " 设备IDS ",required = true)
    	  @TableField(exist = false)
    	  @NotNull(message = "设备列表必传")
    	  private List<Integer> deviceIds;
    	  
    	
    	  
    	public List<Integer> getDeviceIds() {
			return deviceIds;
		}
		public void setDeviceIds(List<Integer> deviceIds) {
			this.deviceIds = deviceIds;
		}
		/**
		 * 广告名称
		 */
	    public String getAdName() {
	        return adName;
	    }
		/**
		 * 广告名称
		 */
	    public DeviceAdEntity setAdName(String adName) {
	       this.adName = adName;
	        return this;
	    }
		/**
		 * 广告地址
		 */
	    public String getAdUrl() {
	        return adUrl;
	    }
		/**
		 * 广告地址
		 */
	    public DeviceAdEntity setAdUrl(String adUrl) {
	       this.adUrl = adUrl;
	        return this;
	    }
		/**
		 * 坐标
		 */
	    public String getCoordinates() {
	        return coordinates;
	    }
		/**
		 * 坐标
		 */
	    public DeviceAdEntity setCoordinates(String coordinates) {
	       this.coordinates = coordinates;
	        return this;
	    }
		/**
		 * 创建时间
		 */
	    public Date getCreateTime() {
	        return createTime;
	    }
		/**
		 * 创建时间
		 */
	    public DeviceAdEntity setCreateTime(Date createTime) {
	       this.createTime = createTime;
	        return this;
	    }
		/**
		 * 创建人
		 */
	    public String getCreateUser() {
	        return createUser;
	    }
		/**
		 * 创建人
		 */
	    public DeviceAdEntity setCreateUser(String createUser) {
	       this.createUser = createUser;
	        return this;
	    }
		/**
		 * 最后一次新时间
		 */
	    public Date getUpdateTime() {
	        return updateTime;
	    }
		/**
		 * 最后一次新时间
		 */
	    public DeviceAdEntity setUpdateTime(Date updateTime) {
	       this.updateTime = updateTime;
	        return this;
	    }
		/**
		 * 更新人
		 */
	    public Integer getUpdator() {
	        return updator;
	    }
		/**
		 * 更新人
		 */
	    public DeviceAdEntity setUpdator(Integer updator) {
	       this.updator = updator;
	        return this;
	    }
		/**
		 * 最近一次上线时间
		 */
	    public Date getOnlineTime() {
	        return onlineTime;
	    }
		/**
		 * 最近一次上线时间
		 */
	    public DeviceAdEntity setOnlineTime(Date onlineTime) {
	       this.onlineTime = onlineTime;
	        return this;
	    }




}
